public Class SingleEmailMessage
{

public static void SentEmailtoUsers(String email)
{
        Messaging.Singleemailmessage mail =new Messaging.Singleemailmessage();
        mail.setToAddresses(new String[] {email});
        mail.setSubject('Accounts have been Merged');
        mail.setPlainTextBody('This is to notify that Accounts has been merged');
        // It's Compulsory to set activity false
        mail.setSaveAsActivity(false);
        Messaging.sendEmail(new Messaging.Singleemailmessage[] {mail}); 



}


}